package com.zzh.compilation.model;

/**
 * @author  zhangzhihao Code King You Konw ?
 * @version 1.0
 * @since   未知时间
 * Token类，用于表示词法分析的结果
 * 包含类型、值、行号
 */
public class Token {
    int type;
    String value;
    int lineNumber;

    public Token(int type, String value, int lineNumber) {
        this.type = type;
        this.value = value;
        this.lineNumber = lineNumber;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getLineNumber() {
        return lineNumber;
    }

    public void setLineNumber(int lineNumber) {
        this.lineNumber = lineNumber;
    }
}